package com.gralves.elasticsearch.utils.config.enumeration;

/**
 * @author zhouyibin
 * @date 2018/12/28
 * @desc
 */
public enum QueryType {
    MATCH_ALL_QUERY(0, "全匹配查询"),
    FUZZY_QUERY(1, "近似查询==>模糊查询"),
    MATCH_PHRASE_QUERY(2, "匹配词条查询==>文档不分词"),
    QUERY_STRING_QUERY(3, "分词检索==>文档将分词"),
    TERM_QUERY(4, "词条查询"),
    TERMS_QUERY(5, "多结果查询"),
    WILD_CARD_QUERY(6, "模糊查询");

    private Integer queryType;
    private String memo;

    QueryType(Integer queryType, String memo) {
        this.queryType = queryType;
        this.memo = memo;
    }

    public Integer getQueryType() {
        return queryType;
    }

    public void setQueryType(Integer queryType) {
        this.queryType = queryType;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
